/*
 * Filename:    HcpmsWarnsDTO.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年11月10日
 */
package com.paic.mhis.hcpms.warning.dto;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import com.paic.mhis.common.base.dto.BaseDTO;

public class HcpmsWarnsDTO extends BaseDTO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 788987817878978L;
	/** 物理ID **/
	private String idWarnInfo;
	/** 预警任务号 **/
	private String warnNo;
	/** 来源(01群众投诉、02网上筛查、03智能预警) **/
	private String source;
	/** 预警起始日期 **/
	private String startDate;
	/** 预警结束日期 **/
	private String endDate;
	/** 预警类别(2门诊、1住院) **/
	private String warnType;
	/** 处理方式(01提醒、02自查整改、03稽核) **/
	private String process;
	/** 预警原因 **/
	private String reason;
	/** 反馈截止时间 **/
	private String feedbackEndDate;
	/** 状态 **/
	private String status;
	/** 01实名\02匿名投诉 **/
	private String complain;
	/** 联系人 **/
	private String contact;
	/** 联系电话 **/
	private String phone;
	/** 联系邮箱 **/
	private String mail;
	/** 联系地址 **/
	private String address;
	/** 经办人 **/
	private String agent;
	/** 经办时间 **/
	private String agentDate;
	/** 审核人 **/
	private String auditor;
	/** 审核时间 **/
	private String auditDate;
	/** 审核意见 **/
	private String auditOpinion;
	/** 审核说明 **/
	private String auditDesc;
	/** 反馈人 **/
	private String feedback;
	/** 反馈时间 **/
	private String feedbackDate;
	/** 审批人 **/
	private String approver;
	/** 审批时间 **/
	private String approveDate;
	/** 审批意见 **/
	private String approveOpinion;
	/** 审批说明 **/
	private String approveDesc;

	/** 新增的字段 **/
	private String warnDate;
	/** 来源方式(01投诉、02预警监控) **/
	private String sourceType;
	/** 来源对象 **/
	private String sourceObject;
	private String targetType;
	private String summary;
	/** 预警任务号 手工录入 **/
	private String warnNoBiz;
	/** 是否退回 **/
	private String isCheckBack;
	/**
	 * 字段的中文显示
	 */
	private String sourceTypeName;// 来源方式名称
	private String sourceName;// 案件来源名称
	private String processName;// 处理方式名称
	private String agentName;// 经办人姓名
	private String auditorName;// 审核人姓名
	private String auditName;// 审核处理意见名称
	private String feedbackName;// 反馈人姓名
	private String approverName;// 审批人姓名
	private String approveName;// 审批人意见
	private String warnTypeName;// 预警类型名称
	/** 预警起始日期-展示 **/
	private String startDateShow;
	/** 预警结束日期-展示 **/
	private String endDateShow;

	public String getIdWarnInfo() {
		return idWarnInfo;
	}

	public void setIdWarnInfo(String idWarnInfo) {
		this.idWarnInfo = idWarnInfo;
	}

	public String getWarnNo() {
		return warnNo;
	}

	public void setWarnNo(String warnNo) {
		this.warnNo = warnNo;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public String getWarnType() {
		return warnType;
	}

	public void setWarnType(String warnType) {
		this.warnType = warnType;
	}

	public String getProcess() {
		return process;
	}

	public void setProcess(String process) {
		this.process = process;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getFeedbackEndDate() {
		return feedbackEndDate;
	}

	public void setFeedbackEndDate(String feedbackEndDate) {
		this.feedbackEndDate = feedbackEndDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getComplain() {
		return complain;
	}

	public void setComplain(String complain) {
		this.complain = complain;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	public String getAgentDate() {
		return agentDate;
	}

	public void setAgentDate(String agentDate) {
		this.agentDate = agentDate;
	}

	public String getAuditor() {
		return auditor;
	}

	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}

	public String getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(String auditDate) {
		this.auditDate = auditDate;
	}

	public String getAuditOpinion() {
		return auditOpinion;
	}

	public void setAuditOpinion(String auditOpinion) {
		this.auditOpinion = auditOpinion;
	}

	public String getAuditDesc() {
		return auditDesc;
	}

	public void setAuditDesc(String auditDesc) {
		this.auditDesc = auditDesc;
	}

	public String getFeedback() {
		return feedback;
	}

	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	public String getFeedbackDate() {
		return feedbackDate;
	}

	public void setFeedbackDate(String feedbackDate) {
		this.feedbackDate = feedbackDate;
	}

	public String getApprover() {
		return approver;
	}

	public void setApprover(String approver) {
		this.approver = approver;
	}

	public String getApproveDate() {
		return approveDate;
	}

	public void setApproveDate(String approveDate) {
		this.approveDate = approveDate;
	}

	public String getApproveOpinion() {
		return approveOpinion;
	}

	public void setApproveOpinion(String approveOpinion) {
		this.approveOpinion = approveOpinion;
	}

	public String getApproveDesc() {
		return approveDesc;
	}

	public void setApproveDesc(String approveDesc) {
		this.approveDesc = approveDesc;
	}

	public String getWarnDate() {
		return warnDate;
	}

	public void setWarnDate(String warnDate) {
		this.warnDate = warnDate;
	}

	public String getSourceType() {
		return sourceType;
	}

	public void setSourceType(String sourceType) {
		this.sourceType = sourceType;
	}

	public String getSourceObject() {
		return sourceObject;
	}

	public void setSourceObject(String sourceObject) {
		this.sourceObject = sourceObject;
	}

	public String getTargetType() {
		return targetType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getSourceTypeName() {
		return sourceTypeName;
	}

	public void setSourceTypeName(String sourceTypeName) {
		this.sourceTypeName = sourceTypeName;
	}

	public String getSourceName() {
		return sourceName;
	}

	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}

	public String getProcessName() {
		return processName;
	}

	public void setProcessName(String processName) {
		this.processName = processName;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getAuditorName() {
		return auditorName;
	}

	public void setAuditorName(String auditorName) {
		this.auditorName = auditorName;
	}

	public String getAuditName() {
		return auditName;
	}

	public void setAuditName(String auditName) {
		this.auditName = auditName;
	}

	public String getFeedbackName() {
		return feedbackName;
	}

	public void setFeedbackName(String feedbackName) {
		this.feedbackName = feedbackName;
	}

	public String getApproverName() {
		return approverName;
	}

	public void setApproverName(String approverName) {
		this.approverName = approverName;
	}

	public String getApproveName() {
		return approveName;
	}

	public void setApproveName(String approveName) {
		this.approveName = approveName;
	}

	public String getWarnTypeName() {
		return warnTypeName;
	}

	public void setWarnTypeName(String warnTypeName) {
		this.warnTypeName = warnTypeName;
	}

	public String getWarnNoBiz() {
		return warnNoBiz;
	}

	public void setWarnNoBiz(String warnNoBiz) {
		this.warnNoBiz = warnNoBiz;
	}

	public HcpmsWarningDTO getHcpmsWarning() {
		SimpleDateFormat sft = new SimpleDateFormat("yyyy-MM-dd");
		HcpmsWarningDTO dto = new HcpmsWarningDTO();
		if (warnNoBiz != null) {
			dto.setWarnNoBiz(warnNoBiz);
		}
		if (warnNo != null) {
			dto.setWarnNo(warnNo);
		}
		if (source != null) {
			dto.setSource(source);
		}
		if (!"".equals(startDate) && startDate != null) {
			try {
				dto.setStartDate(sft.parse(startDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (!"".equals(endDate) && endDate != null) {
			try {
				dto.setEndDate(sft.parse(endDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (warnType != null) {
			dto.setWarnType(warnType);
		}
		if (process != null) {
			dto.setProcess(process);
		}
		if (reason != null) {
			dto.setReason(reason);
		}
		if (!"".equals(feedbackEndDate) && feedbackEndDate != null) {
			try {
				dto.setFeedbackEndDate(sft.parse(feedbackEndDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (status != null) {
			dto.setStatus(status);
		}
		if (complain != null) {
			dto.setComplain(complain);
		}
		if (contact != null) {
			dto.setContact(contact);
		}
		if (phone != null) {
			dto.setPhone(phone);
		}
		if (mail != null) {
			dto.setMail(mail);
		}
		if (address != null) {
			dto.setAddress(address);
		}
		if (agent != null) {
			dto.setAgent(agent);
		}
		if (!"".equals(agentDate) && agentDate != null) {
			try {
				dto.setAgentDate(sft.parse(agentDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (auditor != null) {
			dto.setAuditor(auditor);
		}
		if (!"".equals(auditDate) && auditDate != null) {
			try {
				dto.setAuditDate(sft.parse(auditDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (auditOpinion != null) {
			dto.setAuditOpinion(auditOpinion);
		}
		if (auditDesc != null) {
			dto.setAuditDesc(auditDesc);
		}
		if (feedback != null) {
			dto.setFeedback(feedback);
		}
		if (!"".equals(feedbackDate) && feedbackDate != null) {
			try {
				dto.setFeedbackDate(sft.parse(feedbackDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (approver != null) {
			dto.setApprover(approver);
		}
		if (!"".equals(approveDate) && approveDate != null) {
			try {
				dto.setApproveDate(sft.parse(approveDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		if (approveOpinion != null) {
			dto.setApproveOpinion(approveOpinion);
		}
		if (approveDesc != null) {
			dto.setApproveDesc(approveDesc);
		}
		if (sourceType != null) {
			dto.setSourceType(sourceType);
		}
		if (sourceObject != null) {
			dto.setSourceObject(sourceObject);
		}
		if (targetType != null) {
			dto.setTargetType(targetType);
		}
		if (summary != null) {
			dto.setSummary(summary);
		}
		if (!"".equals(warnDate) && warnDate != null) {
			try {
				dto.setWarnDate(sft.parse(warnDate));
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		return dto;
	}

	public String getStartDateShow() {
		return startDateShow;
	}

	public void setStartDateShow(String startDateShow) {
		this.startDateShow = startDateShow;
	}

	public String getEndDateShow() {
		return endDateShow;
	}

	public void setEndDateShow(String endDateShow) {
		this.endDateShow = endDateShow;
	}

	public String getIsCheckBack() {
		return isCheckBack;
	}

	public void setIsCheckBack(String isCheckBack) {
		this.isCheckBack = isCheckBack;
	}

}
